//
//  ThemeTests.swift
//  FearfulNotificationTests
//
//  Created by Jabin on 2019/5/27.
//  Copyright © 2019 筱鹏. All rights reserved.
//

import XCTest
@testable import FearfulNotification

class ThemeTests: XCTestCase {

    override func setUp() {
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }

    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
    }

    func testObtainTheme() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
        Theme.load()
        
        XCTAssertEqual(Theme.type, ThemeType.dark)
        XCTAssertEqual(Theme.color.background, DarkThemeColor.background)
        XCTAssertEqual(Theme.color.foreground, DarkThemeColor.foreground)
        XCTAssertEqual(Theme.color.title, DarkThemeColor.title)
        
        XCTAssertEqual(Theme.font.title, DarkThemeFont.title)
        
    }

}
